import request from "../request";

/**
 * 获取歌手分类
 * @returns
 */
export const getSingerListApi = ({ type, area, initial }) => {
  return request.get(
    `/artist/list?type=${type}&area=${area}&initial=${initial}`
  );
};
// export const getSingerListApi = (initial, type, area) => {
//   return request.get("/artist/list", {
//     params: {
//       initial: "-1",
//       type: "-1",
//       area: "-1",
//     },
//   });
// };

/**
 * 获取歌手详情
 * @param {*} id 歌手id
 * @returns
 */
export const getSingerDetailApi = (id) => {
  return request.get(`/artist/detail?id=${id}`);
};
